import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
import { ApiProperty } from "@nestjs/swagger";

@Entity({
    name: 'aaa_user',  //实际数据库表名
})
export class User {


    @PrimaryGeneratedColumn()
    @ApiProperty()
    id: number;


    @ApiProperty({maxLength:50})
    @Column({
        name: 'aaa_name', //实际数据库字段
        length: 50
    })
    name: string;   //接口字段
}